package com.c.service.impl;

import com.c.pojo.entity.User;
import com.c.repository.UserRepository;
import com.c.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author bysun
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserRepository userRepository;

    @Override
    public User getUserByName(String username) {
        return userRepository.getUserByName(username);
    }
}
